# syntax=docker/dockerfile:1
#https://docs.docker.com/language/java/build-images/

#https://hub.docker.com/_/eclipse-temurin
#镜像文档
#https://github.com/docker-library/docs/tree/master/eclipse-temurin

#FROM eclipse-temurin:20-jdk-jammy
#FROM openjdk:21
FROM amazoncorretto:22-alpine
WORKDIR /app
COPY target/*.jar ./app.jar
ENTRYPOINT ["java","--enable-preview","-jar","-Xmx256m","-Xmx256m","app.jar"]
